<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>HowMuch Services API</title>
</head>
<body>
	<b>--- Metodos entidad Productprice:</b>
	<br/>
	<br/>
	<br/>
	<b>------ Show</b>
	<br/>
	<p>Parametros: Integer marketId (req), Integer productId (req)</p>
	<b>Ejemplo HttpRequest:</b>
	<br/>
	<br/> 
	<p>GET http://ip:port/howmuch-services/rest/productprice/show.json?marketId=1&productId=2 HTTP/1.1</p>
	<p>Cookie: JSESSIONID=14F273C48CBD0EDA86E635299576E747; Path=/</p>
	<br/> 	
	<b>Ejemplo HttpResponse:</b>
	<br/>	
	<p>HTTP/1.1 200 OK</p>
	<p>Content-Type: application/json</p>
	<p>[{"id":3,"product":{"id":2,"productcategory":{"id":2,"name":"Golosina","description":null},"name":"Alfajor Jorgito","description":null,"deleted":false,"createuser":1,"updateuser":null,"createdate":1349466554000,"updatedate":null},"market":{"id":1,"marketcategory":{"id":2,"name":"Kiosko","description":null},"address":{"id":1,"geopoint":{"id":2,"latitude":-34.629112,"longitude":-58.787123},"location":{"id":1,"province":{"id":1,"name":"Buenos Aires"},"name":"Moreno"},"name":"Martin Fierro 5200","description":null,"zipcode":"B1743AMH"},"name":"Kiosko Valentina","description":null,"phone":null,"email":null,"score":0,"businesshour":null,"twentyfourhourservice":null,"deleted":false,"createuser":1,"updateuser":null,"createdate":1349466333000,"updatedate":null},"price":6.1,"score":0,"deleted":false,"createuser":1,"createdate":1349902905000}]</p>
	<br/>
	<br/>
	<br/>
	<b>------ List</b>
	<br/>
	<p>Parametros: Integer productId (req), Integer pageNumber (req), Integer size (req)</p>
	<b>Ejemplo HttpRequest:</b>
	<br/>
	<br/> 
	<p>GET http://ip:port/howmuch-services/rest/productprice/list.json?productId=2&pageNumber=1&size=10 HTTP/1.1</p>
	<p>Cookie: JSESSIONID=14F273C48CBD0EDA86E635299576E747; Path=/</p>
	<br/> 	
	<b>Ejemplo HttpResponse:</b>
	<br/>	
	<p>HTTP/1.1 200 OK</p>
	<p>Content-Type: application/json</p>
	<p>[{"id":3,"product":{"id":2,"productcategory":{"id":2,"name":"Golosina","description":null},"name":"Alfajor Jorgito","description":null,"deleted":false,"createuser":1,"updateuser":null,"createdate":1349466554000,"updatedate":null},"market":{"id":1,"marketcategory":{"id":2,"name":"Kiosko","description":null},"address":{"id":1,"geopoint":{"id":2,"latitude":-34.629112,"longitude":-58.787123},"location":{"id":1,"province":{"id":1,"name":"Buenos Aires"},"name":"Moreno"},"name":"Martin Fierro 5200","description":null,"zipcode":"B1743AMH"},"name":"Kiosko Valentina","description":null,"phone":null,"email":null,"score":0,"businesshour":null,"twentyfourhourservice":null,"deleted":false,"createuser":1,"updateuser":null,"createdate":1349466333000,"updatedate":null},"price":6.1,"score":0,"deleted":false,"createuser":1,"createdate":1349902905000},{"id":2,"product":{"id":2,"productcategory":{"id":2,"name":"Golosina","description":null},"name":"Alfajor Jorgito","description":null,"deleted":false,"createuser":1,"updateuser":null,"createdate":1349466554000,"updatedate":null},"market":{"id":1,"marketcategory":{"id":2,"name":"Kiosko","description":null},"address":{"id":1,"geopoint":{"id":2,"latitude":-34.629112,"longitude":-58.787123},"location":{"id":1,"province":{"id":1,"name":"Buenos Aires"},"name":"Moreno"},"name":"Martin Fierro 5200","description":null,"zipcode":"B1743AMH"},"name":"Kiosko Valentina","description":null,"phone":null,"email":null,"score":0,"businesshour":null,"twentyfourhourservice":null,"deleted":false,"createuser":1,"updateuser":null,"createdate":1349466333000,"updatedate":null},"price":5.0,"score":4,"deleted":false,"createuser":1,"createdate":1349466662000}]</p>
	<br/>
	<br/>
	<br/>
	<b>------ Create</b>
	<br/>
	<p>Parametros: Integer productId (req), Integer marketId (req), Float price (req)</p>
	<b>Ejemplo HttpRequest:</b>
	<br/>
	<br/> 
	<p>PUT http://ip:port/howmuch-services/rest/productprice/create.json?productId=2&marketId=1&price=6.11 HTTP/1.1</p>
	<p>Cookie: JSESSIONID=14F273C48CBD0EDA86E635299576E747; Path=/</p>
	<br/> 	
	<b>Ejemplo HttpResponse:</b>
	<br/>	
	<p>HTTP/1.1 200 OK</p>
	<p>Content-Type: application/json</p>
	<p>{"status":"done"}</p>
	<br/>
	<br/>
	<br/>
	<b>------ Score</b>
	<br/>
	<p>Parametros: Integer productpriceId (req)</p>
	<b>Ejemplo HttpRequest:</b>
	<br/>
	<br/> 
	<p>PUT http://ip:port/howmuch-services/rest/productprice/score.json?productpriceId=2 HTTP/1.1</p>
	<p>Cookie: JSESSIONID=14F273C48CBD0EDA86E635299576E747; Path=/</p>
	<br/> 	
	<b>Ejemplo HttpResponse:</b>
	<br/>	
	<p>HTTP/1.1 200 OK</p>
	<p>Content-Type: application/json</p>
	<p>{"status":"done"}</p>
	<br/>
	<br/>
	<br/>
	<b>------ Unscore</b>
	<br/>
	<p>Parametros: Integer productpriceId (req)</p>
	<b>Ejemplo HttpRequest:</b>
	<br/>
	<br/> 
	<p>PUT http://ip:port/howmuch-services/rest/productprice/unscore.json?productpriceId=2 HTTP/1.1</p>
	<p>Cookie: JSESSIONID=14F273C48CBD0EDA86E635299576E747; Path=/</p>
	<br/> 	
	<b>Ejemplo HttpResponse:</b>
	<br/>	
	<p>HTTP/1.1 200 OK</p>
	<p>Content-Type: application/json</p>
	<p>{"status":"done"}</p>
	<br/>
	<br/>
	<br/>										
	<a href="../index.jsp">Volver</a>	
</body>
</html>